﻿using System;
using AccessControl.Contracts.Models;

namespace AccessControl.Data.Models
{
    /// <summary>
    /// Represents related device
    /// </summary>
    /// <remarks></remarks>
    public abstract class RelatedDevice : IpDevice, IRelatedDevice
    {
        #region Fields

        int _RelatedEntryId;

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the related entry.
        /// </summary>
        /// <value>
        /// The related entry.
        /// </value>
        public int RelatedEntryId
        {
            get { return _RelatedEntryId; }
            set
            {
                if (_RelatedEntryId != value)
                {
                    _RelatedEntryId = value;
                    NotifyPropertyChanged("RelatedEntryId");
                }
            }
        }

        #endregion
    }
}
